//
//  NewSellerPersonlistTableViewCell.m
//  智积分
//
//  Created by apple on 2018/5/15.
//  Copyright © 2018年 Cynic. All rights reserved.
//

#import "NewSellerPersonlistTableViewCell.h"

@implementation NewSellerPersonlistTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    /*@property (nonatomic ,retain)UIButton *header;
     @property (nonatomic ,retain)UILabel *name;
     @property (nonatomic ,retain)UILabel *time;
     @property (nonatomic ,retain)UILabel *money;*/
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    _header = [[UIButton alloc] initWithFrame:CGRectMake(7, 7, 40, 40)];
    _header.layer.cornerRadius = 20;
    _header.backgroundColor = [UIColor lightGrayColor];
    _header.clipsToBounds = YES;
    _name = [[UILabel alloc] initWithFrame:CGRectMake(61, 7, cx_wid - 150, 16)];
    _time = [[UILabel alloc] initWithFrame:CGRectMake(61, 30, cx_wid - 150, 16)];
    _money = [[UILabel alloc] initWithFrame:CGRectMake(cx_wid - 80 - 10, 19, 80, 16)];
    _money.textAlignment = NSTextAlignmentRight;
    _anotherpay = [[UILabel alloc] initWithFrame:CGRectMake(cx_wid - 80, 29, 80, 16)];
    _name.font = [UIFont systemFontOfSize:14];
    _name.textColor = [UIColor blackColor];
    _time.font = [UIFont systemFontOfSize:13];
    _time.textColor = [CXSinglerModel colorWithHex:@"999999" alpha:1];
    _money.font = [UIFont systemFontOfSize:15];
    _money.textColor = [CXSinglerModel colorWithHex:@"0EBF66" alpha:1];
    _anotherpay.font = [UIFont systemFontOfSize:12];
    _anotherpay.textColor = [CXSinglerModel colorWithHex:@"9B9B9B" alpha:1];
    
    [self.contentView addSubview:_header];
    [self.contentView addSubview:_name];
    [self.contentView addSubview:_time];
    [self.contentView addSubview:_money];
    
    UIView *layerview = [[UIView alloc] initWithFrame:CGRectMake(0, 53, cx_wid, 1)];
    layerview.backgroundColor = [CXSinglerModel colorWithHex:@"f3f4f6" alpha:1];
    [self.contentView addSubview:layerview];
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
